<!DOCTYPE html>
<html>
<head>
    <title>测算数据公示</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/style/admin.css" media="all">
    <link rel="stylesheet" href="/style/jmdf.css" media="all">
    <style>
        .footer {
            color: inherit;
            border: 1px solid #e7eaec;
            background: #f5f5f6;
            padding: 5px;
            width: 100%;
            position: fixed;
            bottom: 0px;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="layui-fluid">
    <h1 style="text-align: center;">请选择要测算的征收项目编号批次以及配置编号</h1>
    <form class="layui-form" id="form">
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-col-xs6">
                    <div class="layui-inline">
                        <label class="layui-form-labelLong">批次编号：</label>
                        <div class="layui-input-blockRight">
                            <input type="text" class="layui-input" autocomplete="off" placeholder="必填项"
                                   style="width: 200px;"
                                   name="projectCode" id="projectCode" value=""
                                   lay-verify="required"/>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-inline">
                        <label class="layui-form-labelLong">配置编号：</label>
                        <div class="layui-input-blockRight">
                            <input type="text" class="layui-input" autocomplete="off" placeholder="必填项"
                                   style="width: 260px;" lay-verify="required" id="parameterCode"
                                   name="parameterCode" value=""/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <div class="footer">
        <button type="button" class="layui-btn" name="submitBtn" id="submitBtn">提　　交</button>
    </div>
</div>
</body>
<script src="/layui/layui.js" charset="utf-8"></script>
<script>
    layui.config({
        base: '/modules/' //静态资源所在路径
    }).use(['jquery', 'form', 'jmdf', 'layer'], function () {
        var $ = layui.jquery, jmdf = layui.jmdf, form = layui.form, layer = layui.layer;

        $("#submitBtn").click(function () {
            var projectCodeStr = $("#projectCode").val();
            var parameterCodeStr = $("#parameterCode").val();
            if (projectCodeStr == "") {
                layer.msg("请先选择要公示的征收项目！", {anim: 6, icon: 2, time: 3000});
            } else if (parameterCodeStr == "") {
                layer.msg("请先选择要公示的安置项目！", {anim: 6, icon: 2, time: 3000});
            } else {
                jmdf.view("historyStatistics?projectCode=" + projectCodeStr + "&textParameterCode=" + parameterCodeStr, 100);
            }
        });
    })
</script>
</html>